import http from '../index'

// 分页获取登录日志
export const getLoginLogs = ({ ascended = null, current = null, size = null, sortFieldName = null, loginIp = null, loginUserName = null, }) => {
    return http.get("logs/login-logs", { ascended, current, size, sortFieldName, loginIp, loginUserName })
}

// 批量删除登录日志
export const delLoginLogs = ({ sidList }) => {
    return http.put("logs/login-logs/delete", { sidList })
}

// 分页获取操作日志
export const getOperateLogs = ({ ascended = null, current = null, size = null, sortFieldName = null, businessType = null, operatorUserId = null, title = null }) => {
    return http.get("logs/operation-logs", { ascended, current, size, sortFieldName, businessType, operatorUserId, title })
}

// 批量删除操作日志
export const delOperateLogs = ({ sidList }) => {
    return http.put("logs/operation-logs/delete", { sidList })
}
